Upload File
AutomatR.Zendesk.Activities.UploadFile
The "Upload File" activity in AutomatR is part of the Zendesk activities package, facilitating the attachment of files to tickets in Zendesk. This activity supports various file types, including documents and images, enhancing the capability to include relevant files in Zendesk ticket comments.
Properties
Name | Description |
---|---|
Input | |
File Path | The full path, including the file name, of the file to be uploaded. This field supports only strings or String variables. The endpoint has a required filename query parameter, specifying the file's name when attached to the ticket comment. This is a required field. |
Misc | |
Display Name | Provides a customizable name for the activity displayed in the workflow. The display name enhances clarity and organization within the automation project. String variables containing the desired display name. |
Optional | |
Delay | Enter the wait time in seconds (Example: 5 seconds i.e., 5) to start the activity. This is an optional field. |
Output | |
Uploaded File Token | The token of the uploaded file. This field supports only strings or String variables. |
Uploaded File Attachment | The attachment ID (attachment_id) of the uploaded file. Enter an Int64 or an Int64 variable. |
Note:
- The "File Path" property requires the full path of the file, including the file name, to be uploaded.
- The activity automatically determines the content type based on the file extension to ensure correct handling in Zendesk.
- Supported file types include documents (.docx, .doc, .pdf, .xlsx, .xls) and images (.jpg, .jpeg, .png).
- The "Uploaded File Token" provides the token associated with the uploaded file, while "Uploaded File Attachment" contains the attachment ID.
How to use:
- Drag and drop the "Upload File" activity onto the workflow.
- Configure the "File Path" property by specifying the full path, including the file name, of the file to be uploaded.
- Optionally, configure the delay for synchronization purposes.
- Execute the workflow to upload the specified file to Zendesk as an attachment to be associated with ticket comments.
Example: Consider an example where the "Upload File" activity is used to attach a PDF document named "report.pdf" to a Zendesk ticket:
Upload File:
File Path: "C:/Documents/report.pdf"
Delay: 0
Uploaded File Token: fileToken
Uploaded File Attachment: fileAttachmentID
In this example, the activity uploads the "report.pdf" file to Zendesk, and the associated file token is stored in the variable "fileToken," while the attachment ID is stored in the variable "fileAttachmentID" for further use.